from django.contrib import admin

# Register your models here.
from bbs.models import Message, Board, Topic, Post, FPost,User_Info

class UserInfoAdmin(admin.ModelAdmin):
    list_display = ('r_user','sex','role')

class MessageAdmin(admin.ModelAdmin):
    list_display = ('message_title','message_content','message_send_date','message_read')

class BoardAdmin(admin.ModelAdmin):
    list_display = ('board_title','board_desc_short','board_total_topic','board_total_post')

class TopicAdmin(admin.ModelAdmin):
    list_display = ('topic_title','topic_publisher','topic_publish_date')

class PostAdmin(admin.ModelAdmin):
    list_display = ('post_content','post_publisher','post_publish_date')

class FPostAdmin(admin.ModelAdmin):
    list_display = ('fpost_content','fpost_publisher','fpost_publish_date')


admin.site.register(User_Info,UserInfoAdmin)
admin.site.register(Message,MessageAdmin)
admin.site.register(Board,BoardAdmin)
admin.site.register(Topic,TopicAdmin)
admin.site.register(Post,PostAdmin)
admin.site.register(FPost,FPostAdmin)